package com.gift.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 银行卡列表
 */
public class BankCard {
    /**
     * 银行卡id
     */
    private Integer bid;
    /**
     * 银行卡卡号
     */
    private String codenumber;
    /**
     * 别名
     */
    private String alias;
    /**
     * 卡上金额
     */
    private BigDecimal initialnum;
    /**
     * 所属银行
     */
    private String thebank;

    /**
     * 是否使用；1为是，0为否
     */
    private Integer isuse;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifytime;

    public BankCard(Integer bid, String codenumber, String alias, BigDecimal initialnum, String thebank,  Integer isuse, LocalDateTime createtime, LocalDateTime modifytime) {
        this.bid = bid;
        this.codenumber = codenumber;
        this.alias = alias;
        this.initialnum = initialnum;
        this.thebank = thebank;

        this.isuse = isuse;
        this.createtime = createtime;
        this.modifytime = modifytime;
    }

    public BankCard() {
        super();
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getCodenumber() {
        return codenumber;
    }

    public void setCodenumber(String codenumber) {
        this.codenumber = codenumber;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

    public BigDecimal getInitialnum() {
        return initialnum;
    }

    public void setInitialnum(BigDecimal initialnum) {
        this.initialnum = initialnum;
    }

    public String getThebank() {
        return thebank;
    }

    public void setThebank(String thebank) {
        this.thebank = thebank == null ? null : thebank.trim();
    }

    public Integer getIsuse() {
        return isuse;
    }

    public void setIsuse(Integer isuse) {
        this.isuse = isuse;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getModifytime() {
        return modifytime;
    }

    public void setModifytime(LocalDateTime modifytime) {
        this.modifytime = modifytime;
    }
}